#include "../lib/GradeIface.h"


void __stdcall RunApp(IAppAPI *iApi)
{
  ILogger* log;
  IBaseEEAPI* baseApi;
  
   switch (iApi->QueryInterface(IID_IBaseEEAPI, (void**)&baseApi)) {
	  case S_OK:
				if (baseApi->GetLogger(&log) == S_OK)
				   log->LogString("Hello, world.");
				else
					MessageBox(NULL, L"Error", L"Error", MB_OK);
			  break;
			  
	  case E_NOINTERFACE: MessageBox(NULL, L"No Interface", L"Error", MB_OK);
	  
	  default: MessageBox(NULL, L"Error", L"Error", MB_OK);
	}

};